// import com.alibaba.druid.DbType;
// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLStatementImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLRenameUserStatement.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../SQLName.h"

SQLRenameUserStatement::SQLRenameUserStatement()
{
  dbType = DbType_ptr(new DbType(&DbType::mysql));
}

void SQLRenameUserStatement::accept0(SQLASTVisitor_ptr v)
{
  if (v->visit(SharedObject(SQLRenameUserStatement)))
  {
    acceptChild(v, name);
    acceptChild(v, to);
  }
  v->endVisit(SharedObject(SQLRenameUserStatement));
}

SQLName_ptr SQLRenameUserStatement::getName()
{
  return name;
}

void SQLRenameUserStatement::setName(SQLName_ptr name)
{
  this->name = name;
}

SQLName_ptr SQLRenameUserStatement::getTo()
{
  return to;
}

void SQLRenameUserStatement::setTo(SQLName_ptr to)
{
  this->to = to;
}
